package com.wuxing.controller;


import com.wuxing.model.OrderDO;
import com.wuxing.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 电商-订单表 前端控制器
 * </p>
 *
 * @author 
 * @since 2023-05-27
 */
@RestController
@RequestMapping("/order-do")
public class OrderController {
    @Resource
    private OrderService orderService;
    @GetMapping("/list")
    public List<OrderDO> list(){
        List<OrderDO> list = orderService.list();
        return list;
    }

}

